// 菜单、控制点、数据权限模拟数据

/**
 * 模拟菜单数据
 */
var demoMenus = [
  // 首页
  { menuId: 'gm-10', menuName: '首页', upMenuId: '0', menuIcon: 'el-icon-yx-home', funcId: 'dashboard', funcUrl: 'pages/common/dashboard/dashboard', isIndex: true},
  // 管理中心
  { menuId: 'gm-30', menuName: '管理中心', upMenuId: '0', menuIcon: 'el-icon-yx-cloud-download'},
  { menuId: 'gm-3001', menuName: '应用登记', upMenuId: 'gm-30', menuIcon: '', funcId: 'serviceInfo', funcUrl: 'pages/content/dashboard/serviceInfo/serviceInfo'},
  { menuId: 'gm-3002', menuName: '应用部署', upMenuId: 'gm-30', menuIcon: '', funcId: 'applicationInstall', funcUrl: 'pages/content/dashboard/applicationInstall/applicationInstall'},
  { menuId: 'gm-3003', menuName: '活跃应用管理', upMenuId: 'gm-30', menuIcon: '', funcId: 'applicationManager', funcUrl: 'pages/content/dashboard/applicationManager/applicationManager'},
  { menuId: 'gm-3004', menuName: '应用节点管理', upMenuId: 'gm-30', menuIcon: '', funcId: 'instanceManager', funcUrl: 'pages/content/dashboard/instanceManager/instanceManager'},
  { menuId: 'gm-3005', menuName: '弹性伸缩', upMenuId: 'gm-30', menuIcon: '', funcId: 'serviceFlex', funcUrl: 'pages/content/dashboard/serviceExpand/serviceFlex'},
  { menuId: 'gm-3006', menuName: '服务限流', upMenuId: 'gm-30', menuIcon: '', funcId: 'serviceLimiter', funcUrl: 'pages/content/dashboard/serviceLimiter/serviceLimiter'},
  { menuId: 'gm-3007', menuName: '服务降级', upMenuId: 'gm-30', menuIcon: '', funcId: 'serviceDegradation', funcUrl: 'pages/content/dashboard/serviceDegradation/serviceDegradation'},
  { menuId: 'gm-3008', menuName: '服务授权管理', upMenuId: 'gm-30', menuIcon: ''},
  { menuId: 'gm-300801', menuName: '客户端管理', upMenuId: 'gm-3008', menuIcon: '', funcId: 'authClient', funcUrl: 'pages/content/dashboard/authClientService/authClient'},
  { menuId: 'gm-38001', menuName: '服务管理', upMenuId: 'gm-3008', menuIcon: '', funcId: 'authService', funcUrl: 'pages/content/dashboard/authClientService/authService'},
  // 配置中心
  { menuId: 'gm-40', menuName: '配置中心', upMenuId: '0', menuIcon: 'el-icon-yx-steam2'},
  { menuId: 'gm-4001', menuName: '阿波罗配置中心', upMenuId: 'gm-40', menuIcon: '', funcId: 'apolloConfig', funcUrl: 'pages/content/dashboard/apollo/apolloConfig?url=http://apolloConfig'},
  { menuId: 'gm-4002', menuName: '网关过滤器启停', upMenuId: 'gm-40', menuIcon: '', funcId: 'gateWayConfig', funcUrl: 'pages/content/dashboard/gateWayConfig/gateWayConfig'},
  { menuId: 'gm-4003', menuName: '预警规则配置', upMenuId: 'gm-40', menuIcon: '', funcId: 'warnRuleConfig', funcUrl: 'pages/content/dashboard/warnRuleConfig/warnRuleConfig'},
  // 监控中心
  { menuId: 'gm-50', menuName: '监控中心', upMenuId: '0', menuIcon: 'el-icon-yx-shield'},
  { menuId: 'gm-5001', menuName: '主机监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorHost', funcUrl: 'pages/content/dashboard/monitorHost/monitorHost'},
  { menuId: 'gm-5002', menuName: '中间件监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorMiddleware', funcUrl: 'pages/content/dashboard/monitorMiddleware'},
  // 中间件监控 三级菜单
  { menuId: 'gm-500201', menuName: 'Redis监控', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorRedis', funcUrl: 'pages/content/dashboard/monitorRedis/monitorRedis'},
  { menuId: 'gm-500202', menuName: 'Nginx监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorNginx', funcUrl: 'pages/content/dashboard/monitorNginx/monitorNginx'},
  { menuId: 'gm-500203', menuName: 'MySQL监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorMysql', funcUrl: 'pages/content/dashboard/monitorMySql/monitorMySql'},
  // { menuId: 'gm-22022', menuName: 'Kafka监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorKafka', funcUrl: 'pages/common/commpages/commpages?url=http://monitorKafka'},
  { menuId: 'gm-500204', menuName: 'RabbitMQ监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorRabbitMQ', funcUrl: 'pages/content/dashboard/monitorRabbitMQ/monitorRabbitMQ'},
  { menuId: 'gm-5003', menuName: '应用监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorApplication', funcUrl: 'pages/content/dashboard/monitorApplication'},
  { menuId: 'gm-500301', menuName: '链路监控', upMenuId: 'gm-5003', menuIcon: '', funcId: 'monitorLinkWay', funcUrl: 'pages/common/commpages/commpages?url=http://monitorLinkWay'},
  // API和APM监控
  { menuId: 'gm-500302', menuName: '服务APM监控', upMenuId: 'gm-5003', menuIcon: ''},
  // APM监控三级菜单
  { menuId: 'gm-50030201', menuName: '概况', upMenuId: 'gm-500302', menuIcon: '', funcId: 'monitorApmBasic', funcUrl: 'pages/content/dashboard/monitorApm/monitorApmBasic'},
  { menuId: 'gm-50030202', menuName: '响应时间统计', upMenuId: 'gm-500302', menuIcon: '', funcId: 'monitorApmRespTime', funcUrl: 'pages/content/dashboard/monitorApm/monitorApmRespTime'},
  { menuId: 'gm-50030203', menuName: '正确率统计', upMenuId: 'gm-500302', menuIcon: '', funcId: 'monitorApmAccRate', funcUrl: 'pages/content/dashboard/monitorApm/monitorApmAccRate'},
  // API监控
  { menuId: 'gm-500303', menuName: 'API监控', upMenuId: 'gm-5003', menuIcon: ''},
  // API监控三级菜单
  { menuId: 'gm-50030301', menuName: '概况', upMenuId: 'gm-500303', menuIcon: '', funcId: 'monitorApiBasic', funcUrl: 'pages/content/dashboard/monitorApi/monitorApiBasic'},
  { menuId: 'gm-50030302', menuName: '响应时间统计', upMenuId: 'gm-500303', menuIcon: '', funcId: 'monitorApiRespTime', funcUrl: 'pages/content/dashboard/monitorApi/monitorApiRespTime'},
  { menuId: 'gm-50030303', menuName: '正确率统计', upMenuId: 'gm-500303', menuIcon: '', funcId: 'monitorApiAccRate', funcUrl: 'pages/content/dashboard/monitorApi/monitorApiAccRate'},
  { menuId: 'gm-5004', menuName: '预警日志', upMenuId: 'gm-50', menuIcon: '', funcId: 'warnRuleHistory', funcUrl: 'pages/content/dashboard/warnRuleHistory/warnRuleHistory'},
  // 分布式日志
  { menuId: 'gm-5005', menuName: '日志查看', upMenuId: 'gm-50', menuIcon: 'el-icon-yx-steam2'},
  { menuId: 'gm-500501', menuName: '列表查看', upMenuId: 'gm-5005', menuIcon: '', funcId: 'logView', funcUrl: 'pages/content/common/logView/logView'},
  { menuId: 'gm-500502', menuName: '文本查看', upMenuId: 'gm-5005', menuIcon: '', funcId: 'logDocView', funcUrl: 'pages/content/common/logView/logDocView'},
  // 系统管理
  { menuId: 'gm-60000', menuName: '系统设置', upMenuId: '0', menuIcon: 'el-icon-yx-shield'},
  // 系统管理下的菜单
  { menuId: 'gm-61000', menuName: '集群管理', upMenuId: 'gm-60000', menuIcon: '', funcId: 'clusterManager', funcUrl: 'pages/content/dashboard/clusterManager/clusterManager'},
  { menuId: 'gm-62000', menuName: '用户管理', upMenuId: 'gm-60000', menuIcon: '', funcId: 'userManager', funcUrl: 'pages/content/dashboard/userManager/userManager'},
  { menuId: 'gm-63000', menuName: '主机管理', upMenuId: 'gm-60000', menuIcon: '', funcId: 'hostManager', funcUrl: 'pages/content/dashboard/hostManager/hostManager'},
  { menuId: 'gm-64000', menuName: '应用管理', upMenuId: 'gm-60000', menuIcon: '', funcId: 'appManager', funcUrl: 'pages/content/dashboard/appManager/appManager'},
  { menuId: 'gm-65000', menuName: 'harbor仓库管理', upMenuId: 'gm-60000', menuIcon: '', funcId: 'harborManager', funcUrl: 'pages/content/dashboard/harborManager/harborManager'},
  { menuId: 'gm-66000', menuName: '收集器管理', upMenuId: 'gm-60000', menuIcon: '', funcId: 'logCollector', funcUrl: 'pages/content/common/logCollector/logCollector'},
  { menuId: 'gm-67000', menuName: '日志管理', upMenuId: 'gm-60000', menuIcon: 'el-icon-yx-steam2'},
  { menuId: 'gm-67100', menuName: '服务分组管理', upMenuId: 'gm-67000', menuIcon: '', funcId: 'serviceGroup', funcUrl: 'pages/content/common/serviceGroup/serviceGroup'},
  { menuId: 'gm-67200', menuName: '日志收集配置', upMenuId: 'gm-67000', menuIcon: '', funcId: 'logConfig', funcUrl: 'pages/content/common/logConfig/logConfig'}
];

var demoMenus2 = [
  // 一级菜单
  { menuId: 'gm-50', menuName: '监控中心', upMenuId: '0', menuIcon: 'el-icon-yx-shield'},
  { menuId: 'gm-51000', menuName: '主机监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorHost', funcUrl: 'pages/common/commpages/commpages?url=http://monitorHost'},
  { menuId: 'gm-5002', menuName: '中间件监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorMiddleware', funcUrl: 'pages/content/dashboard/monitorMiddleware'},
  { menuId: 'gm-5003', menuName: '服务监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorService', funcUrl: 'pages/content/dashboard/monitorService/monitorService'},
  { menuId: 'gm-54000', menuName: '服务APM监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorApm', funcUrl: 'pages/common/commpages/commpages?url=http://monitorApm'},
  { menuId: 'gm-55000', menuName: 'API监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorApi', funcUrl: 'pages/common/commpages/commpages?url=http://monitorApi'},
  { menuId: 'gm-56000', menuName: '链路监控', upMenuId: 'gm-50', menuIcon: '', funcId: 'monitorLinkWay', funcUrl: 'pages/common/commpages/commpages?url=http://monitorLinkWay'},
  { menuId: 'gm-57000', menuName: '日志分析', upMenuId: 'gm-50', menuIcon: '', funcId: 'analyzeLog', funcUrl: 'pages/common/commpages/commpages?url=http://analyzeLog'},
  { menuId: 'gm-58000', menuName: '预警日志', upMenuId: 'gm-50', menuIcon: '', funcId: 'warnRuleHistory', funcUrl: 'pages/content/dashboard/warnRuleHistory/warnRuleHistory'},
  // 三级菜单
  { menuId: 'gm-22019', menuName: 'Redis监控', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorRedis', funcUrl: 'pages/content/dashboard/monitorRedis/monitorRedis'},
  { menuId: 'gm-22020', menuName: 'Nginx监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorNginx', funcUrl: 'pages/content/dashboard/monitorNginx/monitorNginx'},
  { menuId: 'gm-22021', menuName: 'MySQL监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorMysql', funcUrl: 'pages/content/dashboard/monitorMySql/monitorMySql'},
  // { menuId: 'gm-22022', menuName: 'Kafka监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorKafka', funcUrl: 'pages/common/commpages/commpages?url=http://monitorKafka'},
  { menuId: 'gm-22023', menuName: 'RabbitMQ监控 ', upMenuId: 'gm-5002', menuIcon: '', funcId: 'monitorRabbitMQ', funcUrl: 'pages/content/dashboard/monitorRabbitMQ/monitorRabbitMQ'}
];

  /**
   * 模拟菜单控制点数据
   */
var demoCtrls = [
  { menuId: 'gm-23101', funcId: 'exampleQuery', ctrlCode: 'create', ctrlName: '新增' },
  { menuId: 'gm-23101', funcId: 'exampleQuery', ctrlCode: 'edit', ctrlName: '修改' },
  { menuId: 'gm-23101', funcId: 'exampleQuery', ctrlCode: 'detail', ctrlName: '详情' },
  { menuId: 'gm-23101', funcId: 'exampleQuery', ctrlCode: 'delete', ctrlName: '删除' },
  { menuId: 'gm-23101', funcId: 'exampleQuery', ctrlCode: 'export', ctrlName: '导出' },
  { menuId: 'gm-23102', funcId: 'exampleTree', ctrlCode: 'create', ctrlName: '新增' },
  { menuId: 'gm-23102', funcId: 'exampleTree', ctrlCode: 'edit', ctrlName: '修改' },
  { menuId: 'gm-23102', funcId: 'exampleTree', ctrlCode: 'detail', ctrlName: '详情' }
];

  /**
   * 模拟数据权限数据
   */
var demoDataContr = [
  { authId: '', authTmplId: '', contrId: '', contrInclude: '', contrUrl: '', sqlName: '', sqlString: '', sysId: '' }
];